home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / sdk / vfw11.win / vfwdk / debug.h3_ / debug.bin
Encoding:
Text File  |  1993-11-19  |  2.1 KB  |  89 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992, 1993  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. //  debug.h
  13. //
  14. //  Description:
  15. //
  16. //
  17. //
  18. //==========================================================================;
  19.  
  20. #ifndef _INC_DEBUG
  21. #define _INC_DEBUG
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26.  
  27. //
  28. //
  29. //
  30. //
  31. #ifdef DEBUG
  32.     #define DEBUG_SECTION       "Debug"     // section name for 
  33.     #define DEBUG_MODULE_NAME   "MSFILTER"  // key name and prefix for output
  34.     #define DEBUG_MAX_LINE_LEN  255         // max line length (bytes!)
  35. #endif
  36.  
  37.  
  38. //
  39. //  based code makes since only in win 16 (to try and keep stuff out of
  40. //  [fixed] data segments, etc)...
  41. //
  42. #ifndef BCODE
  43. #ifdef WIN32
  44.     #define BCODE
  45. #else
  46.     #define BCODE           _based(_segname("_CODE"))
  47. #endif
  48. #endif
  49.  
  50.  
  51.  
  52.  
  53. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  54. //
  55. //
  56. //
  57. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  58.  
  59. #ifdef DEBUG
  60.     BOOL WINAPI DbgEnable(BOOL fEnable);
  61.     UINT WINAPI DbgGetLevel(void);
  62.     UINT WINAPI DbgSetLevel(UINT uLevel);
  63.     UINT WINAPI DbgInitialize(BOOL fEnable);
  64.  
  65.     void FAR CDECL dprintf(UINT uDbgLevel, LPSTR szFmt, ...);
  66.  
  67.     #define D(x)        {x;}
  68.     #define DPF         dprintf
  69.     #define DPI(sz)     {static char BCODE ach[] = sz; OutputDebugStr(ach);}
  70. #else
  71.     #define DbgEnable(x)        FALSE
  72.     #define DbgGetLevel()       0
  73.     #define DbgSetLevel(x)      0
  74.     #define DbgInitialize(x)    0
  75.  
  76.     #ifdef _MSC_VER
  77.     #pragma warning(disable:4002)
  78.     #endif
  79.  
  80.     #define D(x)
  81.     #define DPF()
  82.     #define DPI(sz)
  83. #endif
  84.  
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88. #endif  // _INC_DEBUG
  89.